package jp.ac.u_tokyo.dch.util;

import java.util.Comparator;

import jp.ac.u_tokyo.dch.model.output.XmlData;

public class LevelComparator implements Comparator<XmlData>{

	@Override
	public int compare(XmlData o1, XmlData o2) {

		Integer o1Lv = Integer.valueOf(o1.getLevel());
		Integer o2Lv = Integer.valueOf(o2.getLevel());

		return o1Lv.compareTo(o2Lv);
	}

}
